package com.hsjk.szwj.module.train.convert;

import com.hsjk.szwj.framework.common.pojo.PageResult;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminCourseLiveCreateReqVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminCourseLiveDetailRespVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminCourseLivePageRespVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminCourseLivePageSearchRespVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminCourseLiveUpdateReqVO;
import com.hsjk.szwj.module.train.dal.dataobject.course.CourseLiveDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/10/28 16:29
 **/
@Mapper
public interface CourseLiveConvert {
    CourseLiveConvert INSTANCE = Mappers.getMapper(CourseLiveConvert.class);

    PageResult<AdminCourseLivePageRespVO> convertAdminCourseLivePageRespVO(PageResult<CourseLiveDO> courseLiveDOPageResult);
    PageResult<AdminCourseLivePageSearchRespVO> convertAdminCourseLivePageSearchRespVO(PageResult<CourseLiveDO> courseLiveDOPageResult);

    AdminCourseLiveDetailRespVO convertAdminCourseLiveDetailRespVO(CourseLiveDO courseLiveDO);

    CourseLiveDO convertCourseLiveDO(AdminCourseLiveCreateReqVO reqVO);

    CourseLiveDO convertCourseLiveDO(AdminCourseLiveUpdateReqVO reqVO);
}
